package com.ss.android.account.v2.view;

import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;

import com.ss.android.article.browser.R;

import im.quar.autolayout.utils.AutoUtils;

final class j implements TextWatcher {

    private final h a;

    j(h arg1) {
        this.a = arg1;

    }

    public final void afterTextChanged(Editable arg1) {
    }

    public final void beforeTextChanged(CharSequence arg1, int arg2, int arg3, int arg4) {
    }

    public final void onTextChanged(CharSequence arg6, int arg7, int arg8, int arg9) {
        if(this.a.e.getVisibility() == View.VISIBLE) {
            this.a.e.setVisibility(View.GONE);
            this.a.b.setBackgroundResource(com.ss.android.article.browser.R.drawable.a9);
            this.a.b.setPadding(this.a.b.getPaddingLeft(), this.a.b.getPaddingTop(), AutoUtils.scaleValue(this.a.getResources().getDimensionPixelSize(R.dimen.bi)), this.a.b.getPaddingBottom());
        }

        this.a.a(arg6, this.a.d.getText());
    }
}

